<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>工作台>电话咨询记录</title>
    <link rel="stylesheet" href="/Public/admin/css/gxxj/public_O.css">
    <link rel="stylesheet" href="/Public/admin/css/gxxj/user_details.css">
    <style>
        .main3 {
            min-height: 200px;
        }
    </style>
</head>
<body>
<div class="main3 phone_record">
    <div class="record_box">
        <span>-电话咨询描述：</span>
        <textarea class="input_bg_color" name="content" id="content" cols="70" rows="11" placeholder="请描述用户来电咨询内容" style="height: 80px;width: 400px"><{$content}></textarea>
    </div>
    <input  type="button" onclick="back_add()" value="确认" class="bg_color_red color_white reply_btn">
</div>

<!-- <script type="text/javascript" src="/Public/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="/Public/admin/js/laydate/laydate.js"></script> -->
<script src="/Public/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/admin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/Public/admin/js/layer/layer.js"></script>
<script src="/Public/admin/js/layui/layui.js"></script>
<script src="/Public/admin/js/layui/lay/modules/laydate.js"></script>
<script>

    //回复反馈
    function back_add() {
        //加载loading层
        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });
        var id='<{$id}>';
        var  content=$("#content").val();
        var url = "<{$SRVER_NAME}>/admin.php/ContactCenter/editmessage";
        $.post(url, {content: content,id:id}, function (data) {
            if (data.code =="1001") {
                var test=layer.alert(data.result,{title:'提示框',icon:1},function (index) {
                        setTimeout(window.parent.loselay(), 5000);
                    }
                );
            } else {
                layer.alert(data.result,{title:'提示框',icon:0});
            }
        });
        layer.close(index);
    }
</script>
</body>
</html>